using System;
using UnityEngine;

public class EnableController : MonoBehaviour
{
    [Header("需要被激活的物品")] [SerializeField] GameObject[] activeItems;
    [Header("需要被禁用的物品")] [SerializeField] GameObject[] disableItems;
    private void OnEnable()
    {
        foreach (var item in activeItems)
        {
            item.SetActive(true);
        }

        foreach (var item in disableItems)
        {
            item.SetActive(false);
        }
    }
}
